package club.weiyuanstudio.java.eedemo.iocdemo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Dog implements Pet {
    private static final String name = "Dog";
    private static final String sayContext = "Wang, Wang!";

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void say() {
        log.debug(name + ": " + sayContext);
    }
}
